package com.message.queue.rabbit.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by zhangbo on 2020/7/17.
 */

@Component
@RabbitListener(queues = TopicRabbitConfig.WOMAN)
public class TopicTotalReceiver {

    @RabbitHandler
    public void process(String message) {
        System.out.println("TopicTotal接收到消息：" + message);
    }

}
